import request from "@/utils/request";
import systemManage_APi from "./systemManage";
import { object_Inf } from "@/utils/typings/index.type";

/*
 * @Descripttion:
 * @LastEditors: xzh
 * @LastEditTime: 2023-08-09 22:35:15
 */
export default class Dile_APi extends systemManage_APi {
  /**
   * @Author: xzh
   * @Description: 附件上传
   * @Param:
   * @param {object_Inf} data
   */
  static uploadFiles = (data: object_Inf): Promise<object_Inf> =>
    request({
      url: `/api/File/UploadFile`,
      method: "post",
      data,
      headers: { "Content-Type": "multipart/form-data" },
    });
}
